package library.IF;

import java.io.Serializable;
import java.util.HashSet;

/**
 * The Class CustomerDAO.
 * 
 * @author Matthijs Steen
 */

public class CustomerDAO implements Serializable {
	private static final long serialVersionUID = 1L;

	/** The name. */
	private String name = null;

	/** The credits. */
	private int credits = 0;

	/** The books. */
	private HashSet<String> books = new HashSet<String>();

	/**
	 * Gets the name.
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public void addBook(String book){
		books.add(book);
	}

	/**
	 * Gets the credits.
	 * 
	 * @return the credits
	 */
	public int getCredits() {
		return credits;
	}

	/**
	 * Gets the books.
	 * 
	 * @return the books
	 */
	public HashSet<String> getBooks() {
		return books;
	}
}
